package com.captjack.mybatiesplus.controller;

import com.captjack.mybatiesplus.mapper.SysDictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description description.....
 *
 * @author Jack Sparrow
 * @version 1.0.0
 * @date 2018/6/13 23:21
 * package com.captjack.mybatiesplus.controller
 */
@RestController
@RequestMapping(value = "/sysUser", method = {RequestMethod.GET})
public class SysDictController {

    private final SysDictMapper sysDictMapper;

    @RequestMapping(value = "/list")
    public Object list() {
        try {
            return sysDictMapper.findById(16);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "系统异常";
    }

    @Autowired
    public SysDictController(SysDictMapper sysDictMapper) {
        this.sysDictMapper = sysDictMapper;
    }

}
